﻿package mortal.game.view.lookPlayerInfo.view
{
    import Message.DB.Tables.*;
    import com.gengine.resource.*;
    import com.mui.utils.*;
    import mortal.component.window.*;
    import mortal.game.resource.*;
    import mortal.game.utils.*;
    import mortal.game.view.common.*;
    import mortal.game.view.common.display.*;

    public class LookPetInfoPanel extends LookSystemBasePanel
    {
        private var _flyHei:int = 185;

        public function LookPetInfoPanel(param1:Window)
        {
            super(param1);
            return;
        }// end function

        override protected function addSkillPark() : void
        {
            _skillPart = UICompomentPool.getUICompoment(LookPetSkillPanel);
            _skillPart.x = 20;
            _skillPart.y = 493;
            _window.contentTopOf3DSprite.addChild(_skillPart);
            return;
        }// end function

        override protected function addOtherObj() : void
        {
            LoaderHelp.addResCallBack(ResFileConst.petInfo, this.onRecCompl);
            return;
        }// end function

        private function onRecCompl() : void
        {
            if (this.isDisposed)
            {
                return;
            }
            this.pushUIToDisposeVec(UIFactory.gImageBitmap(ImagesConst.PetInfoLeftBgNew, 145, 76, _window.contentTopOf3DSprite));
            var _loc_1:* = UIFactory.bitmapNumberText(-191 + _rightPart.x, 37 + _rightPart.y, "GuildCopyNum.png", 24, 32, -6, _window.contentTopOf3DSprite, 9, BitmapNumberText.Mid);
            this.pushUIToDisposeVec(_loc_1);
            _loc_1.text = _tmountInfo.petDamage.toString();
            return;
        }// end function

        override protected function reset3dModelPos(param1:TModel = null) : void
        {
            var _loc_2:int = 0;
            var _loc_3:int = 0;
            _bodyPlayer.rotationY = 0;
            if (param1 && param1.sortNum == 1)
            {
                _loc_3 = 327 + this._flyHei;
            }
            else
            {
                _loc_3 = 327;
            }
            _loc_2 = 239;
            _bodyPlayer.scaleValue = PetUtil.petScaleValue(param1.proportion1) * 2;
            _rect3d.addObject3d(_bodyPlayer, _loc_2, _loc_3);
            return;
        }// end function

    }
}
